package lession2_2_3;

public class Wolf extends Animal{

	//定义name、weight两个实例变量
	private String name;
	
	private double weight;

	public Wolf(String name, double weight) {
		this.name = name;
		this.weight = weight;
	}

	@Override
	public String toString() {
		return "Wolf [name=" + name + ", weight=" + weight + "]";
	}
	
	
	
	@Override
	public String getDesc() {
		return "Wolf[name=" + name + " , weight="
				+ weight + "]";
	}

	public static void main(String[] args) {
		System.out.println(new Wolf("灰太狼",32.3));
	}
}
